/*
 * Copyright (c) JoinQuant Development Team
 * Author: Huayong Kuang <kuanghuayong@joinquant.com>
 */

#include <iostream>

using namespace std;

void check_hour(int hour) {
    //struct tm tminfo = getLocalTime();
    //int hour = tminfo.tm_hour;
    if (hour <= 3 || (hour >= 9 && hour <= 16) || hour >= 21) {
        cout << hour << " in range" << endl;
    } else {
        cout << hour << " not in range" << endl;
    }
}

int main(void)
{
	check_hour(1);
	check_hour(8);
	check_hour(12);
	check_hour(13);
	check_hour(14);
    check_hour(20);

    return 0;
}

